<?php


class testiloginout extends WebTestCase {

    function testloginoutModule() {
        $this->get('http://localhost/index.php');
        $this->assertResponse(200);
        $this->setField('user', 'admin');
        $this->setField('pass', 'devproject');
        $this->click('Login');
        //$this->assertCookie('PHPSESSID');
        $this->get('http://localhost/index.php');

        $this->assertText("Welcome, admin, to RMH Homebase!");
        
        $this->get('http://localhost/logout.php');
        $this->assertResponse(200);   
        $this->assertText("You are now logged out of RMH Homebase.");
        echo("testloginout complete");
    }

}

?>
